<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Insert title here</title>
<script type="text/javascript" src="js/jquery-1.8.3.min.js"></script>
<script type="text/javascript">
$(function(){
	$("#testbtn").click(function(){
		var v=$("#testForm").serialize();
		alert(v);
		$.ajax({
			type:"GET",
			url:"merchant_login.action",
			dataType: 'text',
			data:v,
			success:function(msg){
				if(msg == "" || msg == null){
					alert("empty");
				}else {
					alert(msg);
			}},
			error: function(xhr, textStatus, errorThrown) {
				NotifyTryAgain();
			}

				
		})

	})
	$("#zzhbtn").click(function(){
		var v=$("#zzhForm").serialize();
		alert(v);
		$.ajax({
			type:"GET",
			url:"merchant_addChild.action",
			dataType: 'text',
			data:v,
			success:function(msg){
				if(msg == "" || msg == null){
					alert("empty");
				}else {
					alert(msg);
			}},
			error: function(xhr, textStatus, errorThrown) {
				NotifyTryAgain();
			}

				
		})

	})
})
</script>
</head>
<body>
	<form id="testForm">
		用户名：<input id="name1" type="text" name="name2"><br /> 密码：<input
			id="passwd1" type="password" name="passwd2">
	</form>
	<input type="button" id="testbtn" value="test">
	
	
	<form id="zzhForm">
		用户名：<input id="merchant.strName" type="text" name="merchant.strName"><br /> 密码：<input
			id="merchant.strPasswd" type="password" name="merchant.strPasswd"><br/>
			子账号类型：<select id="merchant.nAccountType" name="herolist" value="前台" class="select-block">
								  <option value="0">前台</option>
								  <option value="1">管理员</option>
								  <option value="2">客户经理</option>
								</select>
								<br/>
							启用状态：<input id="merchant.bInUse" type="checkbox" checked data-toggle="switch" />
	</form>
	<input type="button" id="zzhbtn" value="zzh">
	<div id="checkFlag" ></div>
</body>
</html>